import service from '@/utils/request'
// import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    // 新增招标申请关闭
    tenderApplyCloseCreate (params) {
        return httpPost({
            url: '/tender/applyClose/create',
            params
        })
    },
    // 根据单据ID(billId)删除招标申请关闭
    tenderApplyCloseDelete (id) {
        return httpGet({
            url: `/tender/applyClose/delete/${id}`,
            // params,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    // 招标申请关闭分页
    // tenderApplyCloseListByEntity (params) {
    //     return httpPost({
    //         url: '/tender/applyClose/listByEntity',
    //         params
    //     })
    // },
    // 根据招标申请ID列表招标申请关闭
    findByApplyId (id) {
        return httpGet({
            url: `/tender/applyClose/findByApplyId/${id}`,
            // params,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    // 更新招标申请关闭
    tenderApplyCloseUpdate (params) {
        return httpPost({
            url: '/tender/applyClose/update',
            params
        })
    },
    // 根据单据ID(billId)查询招标申请关闭
    tenderApplyCloseFindById (id) {
        return httpGet({
            url: `/tender/applyClose/findById/${id}`,
            // params,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    }
}

export default request
